package com.ff.device.domain;

import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.EntityListeners;
import javax.persistence.MappedSuperclass;
import java.io.Serializable;
import java.util.Date;

@Data
@EntityListeners(AuditingEntityListener.class)
@MappedSuperclass
public class BaseInfo implements Serializable {
	
	@CreatedDate
    @Column(updatable = false,name="create_time")
	protected Date createTime;

	@LastModifiedDate
    @Column(name="update_time")
	protected Date updateTime;

}
